mkdir -p command
mkdir-pfoo/bar/baz/quizzwillcreateanymissingdirectoriesinthepath(aslongasyouhavewritepermissionsintheparentdirectory),Weusemkdirtomakeanewdirectoryfromtheterminal.Todothis,openupanewterminal,andmakesureyou'reintherightdirectoryusingthecdcommand.,...
Weusemkdirtomakeanewdirectoryfromtheterminal.Todothis,openupanewterminal,andmakesureyou'reintherightdirectoryusingthecdcommand.
** 本站引用參考文章部分資訊,基於少量部分引用原則,為了避免造成過多外部連結,保留參考來源資訊而不直接連結,也請見諒 **
此文章參考的來源相關文章推薦
How the mkdir command works in Linux
We use mkdir to make a new directory from the terminal. To do this, open up a new terminal, and make sure you're in the right directory using the cd command.
mkdir's -p option
The command will create all the directories necessaries to fulfill your request, not returning any error in case that directory exists.
建立目錄(mkdir 指令)
-p 旗標會建立/home、/home/demo 及/home/demo/sub2 目錄(如果這些目錄不存在的話)。 請參閱Commands Reference, Volume 3 中的mkdir 指令,以取得完整語法。
mkdir Command
-p, Creates missing intermediate path name directories. If the -p flag is not specified, the parent directory of each-newly created directory must already exist ...
Linux mkdir -p command
With the help of mkdir -p command you can create sub-directories of a directory. It will create parent directory first, if it doesn't exist.